//
//  Mediator+BKClassify.m
//  bestkeep
//
//  Created by 武探 on 2016/11/3.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "Mediator+BKClassify.h"
#import "BKClassifyAction.h"

NSString *const BKClassifyTarget = @"BKClassifyAction";

NSString *const BKClassifyActionClassifyViewController = @"classifyViewController";

NSString *const HomeEntryClassifyViewController = @"HomeEntryClassifyViewController:";

NSString *const BKHomeAction = @"BKClassifyActionHome";

@implementation Mediator (BKClassify)

-(UIViewController *)BKClassify_classifyViewController {
    
    MediatorOptions *options = [MediatorOptions optionsWithTargetName:BKClassifyTarget actionName:BKClassifyActionClassifyViewController];
    return [self performWithOptions:options];
}

-(UIViewController *)classifyWithFilterTerms:(NSString *)filterTerms categotyId:(NSString *)categoryId channelType:(NSString *)channelType orderKey:(NSString *)orderKey currentPage:(NSInteger)page keyWord:(NSString *)keyWord order:(NSString *)order classifyType:(NSString*)classifyType{
    
    MediatorOptions *options = [MediatorOptions optionsWithTargetName:BKHomeAction actionName:HomeEntryClassifyViewController];
    options.parameters = @{@"filterTerms":filterTerms,@"categotyId":categoryId,@"channelType":channelType,@"orderKey":orderKey,@"currentPage":@(page),@"keyWord":keyWord,@"order":order,@"classifyType":classifyType};
    return [self performWithOptions:options];
}


@end

@implementation Mediator (BKHome)

-(UIViewController *)HomeIntorecordPushInformationWithFilterTerms:(NSString *)filterTerms categotyId:(NSString *)categoryId channelType:(NSString *)channelType orderKey:(NSString *)orderKey currentPage:(NSInteger)page keyWord:(NSString *)keyWord order:(NSString *)order{
    
    MediatorOptions *options = [MediatorOptions optionsWithTargetName:BKHomeAction actionName:HomeEntryClassifyViewController];
    options.parameters = @{@"filterTerms":filterTerms,@"categotyId":categoryId,@"channelType":channelType,@"orderKey":orderKey,@"currentPage":@(page),@"keyWord":keyWord,@"order":order};
    return [self performWithOptions:options];
}


@end

